import service from "@/utils/service";
import type { BaseResponse } from "../index.d";
import type { HomeStatisticModel } from "./index.d";
export const homeStatisticApi = (): Promise<
  BaseResponse<HomeStatisticModel.statisticResponse[]>
> => {
  return service({
    url: "/home/statistic",
    method: "GET",
  });
};
export const homeLoginStatisticApi = (): Promise<
  BaseResponse<HomeStatisticModel.loginStatisticResponse>
> => {
  return service({
    url: "/home/login_statistic",
    method: "GET",
  });
};
export const homeVersionApi = (): Promise<
  BaseResponse<HomeStatisticModel.versionResponse[]>
> => {
  return service({
    url: "/home/version",
    method: "GET",
  });
};
